import Foundation
import CryptoKit

let secretKey = "awdtif20190619ti"
let salt = SymmetricKey(data: Data(secretKey.utf8))

let password = "jby031216"

let signature = HMAC<SHA256>.authenticationCode(for: Data(password.utf8), using: salt)

print(signature.description.firstIndex(of: " ")!)
